﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <title>活动状态</title>
    <script src="~/Content/Script/jquery.min.js"></script>
    <style>
        * {
            padding: 0;
            margin: 0;
            cursor:pointer;
        }
        .activityIsNot {
            width: 100%;
            height: 100%;
            position: absolute;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction:column;
        }

            .activityIsNot .activityTips {
                width: 30%;
                height: 20%;
            }
    </style>
</head>
<body class="activityIsNot">
    <div class="activityTips">
        <img src="~/Content/Images/redpack/tips.svg" style="width:100%;height:100%" />
    </div>
    <p id="tips" style="text-align:center;font-size:18px;margin-top:5px;color:#959595">活动未开始</p>
</body>
</html>
<script>
    //获取地址参数
    function GetQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) return unescape(r[2]);
        return null;
    }
   
    var tip = GetQueryString('tips');
    if (tip==0)
    {
        $("#tips").text('活动未开始');
    }
    else if (tip == -1)
    {
        $("#tips").text('已经超出每人总抽奖机会次数');
    }
    else if (tip == -2) {
        $("#tips").text('已经超出每人中奖次数');
    }
    else if (tip == -3) {
        $("#tips").text('已经超出每日中奖次数,明天在来吧！');
    }
   
</script>
